CREATE TABLE [dbo].[TCCANJ_CLIN]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[NU_CANJ] [dbo].[TD_VC_008] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[FE_CANJ] [dbo].[TD_DT_001] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TCCANJ_CL__NU_PR__71D1E811] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCANJ_CL__CO_US__72C60C4A] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCANJ_CL__FE_US__73BA3083] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCANJ_CL__CO_US__74AE54BC] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCANJ_CL__FE_US__75A278F5] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCANJ_CLIN] ADD CONSTRAINT [PK__TCCANJ_C__3FBAFB89785FB566] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_CLIE], [NU_CANJ], [CO_UNID_CONC], [FE_CANJ], [NU_PROC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCANJ_CLIN] ADD CONSTRAINT [FK__TCCANJ_CLIN__7909C0DC] FOREIGN KEY ([CO_EMPR], [CO_UNID_CONC], [CO_CLIE], [NU_CANJ], [FE_CANJ]) REFERENCES [dbo].[TCCANJ_CLIE] ([CO_EMPR], [CO_UNID_CONC], [CO_CLIE], [NU_CANJ], [FE_CANJ])
GO
